package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 12个月利润统计
 * @author pc
 *
 */
public class ProfitTwelveBean {

	private String cid;
	private String company;
	
	private String sales_volume_1;
	private String sales_cost_1;
	private String sum_profit_1;
	private String profit_rate_1;
	
	private String sales_volume_2;
	private String sales_cost_2;
	private String sum_profit_2;
	private String profit_rate_2;
	
	private String sales_volume_3;
	private String sales_cost_3;
	private String sum_profit_3;
	private String profit_rate_3;
	
	private String sales_volume_4;
	private String sales_cost_4;
	private String sum_profit_4;
	private String profit_rate_4;
	
	private String sales_volume_5;
	private String sales_cost_5;
	private String sum_profit_5;
	private String profit_rate_5;
	
	private String sales_volume_6;
	private String sales_cost_6;
	private String sum_profit_6;
	private String profit_rate_6;
	
	private String sales_volume_7;
	private String sales_cost_7;
	private String sum_profit_7;
	private String profit_rate_7;
	
	private String sales_volume_8;
	private String sales_cost_8;
	private String sum_profit_8;
	private String profit_rate_8;
	
	private String sales_volume_9;
	private String sales_cost_9;
	private String sum_profit_9;
	private String profit_rate_9;
	
	private String sales_volume_10;
	private String sales_cost_10;
	private String sum_profit_10;
	private String profit_rate_10;
	
	private String sales_volume_11;
	private String sales_cost_11;
	private String sum_profit_11;
	private String profit_rate_11;
	
	private String sales_volume_12;
	private String sales_cost_12;
	private String sum_profit_12;
	private String profit_rate_12;
	
	public ProfitTwelveBean() {
		
	}
	public ProfitTwelveBean(Map<String, Object> map) {
		if (!(map.get("cid") == null || map.get("cid").equals(""))) {
    		this.cid = map.get("cid").toString();
		}
    	if (!(map.get("company") == null || map.get("company").equals(""))) {
    		this.company = map.get("company").toString();
		}
    	
    	if (!(map.get("sales_volume_1") == null || map.get("sales_volume_1").equals(""))) {
    		this.sales_volume_1 = map.get("sales_volume_1").toString();
		}
    	if (!(map.get("sales_cost_1") == null || map.get("sales_cost_1").equals(""))) {
    		this.sales_cost_1 = map.get("sales_cost_1").toString();
		}
    	if (!(map.get("sum_profit_1") == null || map.get("sum_profit_1").equals(""))) {
    		this.sum_profit_1 = map.get("sum_profit_1").toString();
		}
    	if (!(map.get("profit_rate_1") == null || map.get("profit_rate_1").equals(""))) {
    		this.profit_rate_1 = map.get("profit_rate_1").toString();
		}
    	
    	if (!(map.get("sales_volume_2") == null || map.get("sales_volume_2").equals(""))) {
    		this.sales_volume_2 = map.get("sales_volume_2").toString();
    	}
    	if (!(map.get("sales_cost_2") == null || map.get("sales_cost_2").equals(""))) {
    		this.sales_cost_2 = map.get("sales_cost_2").toString();
    	}
    	if (!(map.get("sum_profit_2") == null || map.get("sum_profit_2").equals(""))) {
    		this.sum_profit_2 = map.get("sum_profit_2").toString();
    	}
    	if (!(map.get("profit_rate_2") == null || map.get("profit_rate_2").equals(""))) {
    		this.profit_rate_2 = map.get("profit_rate_2").toString();
    	}
    	
    	if (!(map.get("sales_volume_3") == null || map.get("sales_volume_3").equals(""))) {
    		this.sales_volume_3 = map.get("sales_volume_3").toString();
    	}
    	if (!(map.get("sales_cost_3") == null || map.get("sales_cost_3").equals(""))) {
    		this.sales_cost_3 = map.get("sales_cost_3").toString();
    	}
    	if (!(map.get("sum_profit_3") == null || map.get("sum_profit_3").equals(""))) {
    		this.sum_profit_3 = map.get("sum_profit_3").toString();
    	}
    	if (!(map.get("profit_rate_3") == null || map.get("profit_rate_3").equals(""))) {
    		this.profit_rate_3 = map.get("profit_rate_3").toString();
    	}
    	
    	if (!(map.get("sales_volume_4") == null || map.get("sales_volume_4").equals(""))) {
    		this.sales_volume_4 = map.get("sales_volume_4").toString();
    	}
    	if (!(map.get("sales_cost_4") == null || map.get("sales_cost_4").equals(""))) {
    		this.sales_cost_4 = map.get("sales_cost_4").toString();
    	}
    	if (!(map.get("sum_profit_4") == null || map.get("sum_profit_4").equals(""))) {
    		this.sum_profit_4 = map.get("sum_profit_4").toString();
    	}
    	if (!(map.get("profit_rate_4") == null || map.get("profit_rate_4").equals(""))) {
    		this.profit_rate_4 = map.get("profit_rate_4").toString();
    	}
    	
    	if (!(map.get("sales_volume_5") == null || map.get("sales_volume_5").equals(""))) {
    		this.sales_volume_5 = map.get("sales_volume_5").toString();
    	}
    	if (!(map.get("sales_cost_5") == null || map.get("sales_cost_5").equals(""))) {
    		this.sales_cost_5 = map.get("sales_cost_5").toString();
    	}
    	if (!(map.get("sum_profit_5") == null || map.get("sum_profit_5").equals(""))) {
    		this.sum_profit_5 = map.get("sum_profit_5").toString();
    	}
    	if (!(map.get("profit_rate_5") == null || map.get("profit_rate_5").equals(""))) {
    		this.profit_rate_5 = map.get("profit_rate_5").toString();
    	}
    	
    	if (!(map.get("sales_volume_6") == null || map.get("sales_volume_6").equals(""))) {
    		this.sales_volume_6 = map.get("sales_volume_6").toString();
    	}
    	if (!(map.get("sales_cost_6") == null || map.get("sales_cost_6").equals(""))) {
    		this.sales_cost_6 = map.get("sales_cost_6").toString();
    	}
    	if (!(map.get("sum_profit_6") == null || map.get("sum_profit_6").equals(""))) {
    		this.sum_profit_6 = map.get("sum_profit_6").toString();
    	}
    	if (!(map.get("profit_rate_6") == null || map.get("profit_rate_6").equals(""))) {
    		this.profit_rate_6 = map.get("profit_rate_6").toString();
    	}
    	
    	if (!(map.get("sales_volume_7") == null || map.get("sales_volume_7").equals(""))) {
    		this.sales_volume_7 = map.get("sales_volume_7").toString();
    	}
    	if (!(map.get("sales_cost_7") == null || map.get("sales_cost_7").equals(""))) {
    		this.sales_cost_7 = map.get("sales_cost_7").toString();
    	}
    	if (!(map.get("sum_profit_7") == null || map.get("sum_profit_7").equals(""))) {
    		this.sum_profit_7 = map.get("sum_profit_7").toString();
    	}
    	if (!(map.get("profit_rate_7") == null || map.get("profit_rate_7").equals(""))) {
    		this.profit_rate_7 = map.get("profit_rate_7").toString();
    	}
    	
    	if (!(map.get("sales_volume_8") == null || map.get("sales_volume_8").equals(""))) {
    		this.sales_volume_8 = map.get("sales_volume_8").toString();
    	}
    	if (!(map.get("sales_cost_8") == null || map.get("sales_cost_8").equals(""))) {
    		this.sales_cost_8 = map.get("sales_cost_8").toString();
    	}
    	if (!(map.get("sum_profit_8") == null || map.get("sum_profit_8").equals(""))) {
    		this.sum_profit_8 = map.get("sum_profit_8").toString();
    	}
    	if (!(map.get("profit_rate_8") == null || map.get("profit_rate_8").equals(""))) {
    		this.profit_rate_8 = map.get("profit_rate_8").toString();
    	}
    	
    	if (!(map.get("sales_volume_9") == null || map.get("sales_volume_9").equals(""))) {
    		this.sales_volume_9 = map.get("sales_volume_9").toString();
    	}
    	if (!(map.get("sales_cost_9") == null || map.get("sales_cost_9").equals(""))) {
    		this.sales_cost_9 = map.get("sales_cost_9").toString();
    	}
    	if (!(map.get("sum_profit_9") == null || map.get("sum_profit_9").equals(""))) {
    		this.sum_profit_9 = map.get("sum_profit_9").toString();
    	}
    	if (!(map.get("profit_rate_9") == null || map.get("profit_rate_9").equals(""))) {
    		this.profit_rate_9 = map.get("profit_rate_9").toString();
    	}
    	
    	if (!(map.get("sales_volume_10") == null || map.get("sales_volume_10").equals(""))) {
    		this.sales_volume_10 = map.get("sales_volume_10").toString();
    	}
    	if (!(map.get("sales_cost_10") == null || map.get("sales_cost_10").equals(""))) {
    		this.sales_cost_10 = map.get("sales_cost_10").toString();
    	}
    	if (!(map.get("sum_profit_10") == null || map.get("sum_profit_10").equals(""))) {
    		this.sum_profit_10 = map.get("sum_profit_10").toString();
    	}
    	if (!(map.get("profit_rate_10") == null || map.get("profit_rate_10").equals(""))) {
    		this.profit_rate_10 = map.get("profit_rate_10").toString();
    	}
    	
    	if (!(map.get("sales_volume_11") == null || map.get("sales_volume_11").equals(""))) {
    		this.sales_volume_11 = map.get("sales_volume_11").toString();
    	}
    	if (!(map.get("sales_cost_11") == null || map.get("sales_cost_11").equals(""))) {
    		this.sales_cost_11 = map.get("sales_cost_11").toString();
    	}
    	if (!(map.get("sum_profit_11") == null || map.get("sum_profit_11").equals(""))) {
    		this.sum_profit_11 = map.get("sum_profit_11").toString();
    	}
    	if (!(map.get("profit_rate_11") == null || map.get("profit_rate_11").equals(""))) {
    		this.profit_rate_11 = map.get("profit_rate_11").toString();
    	}
    	
    	if (!(map.get("sales_volume_12") == null || map.get("sales_volume_12").equals(""))) {
    		this.sales_volume_12 = map.get("sales_volume_12").toString();
    	}
    	if (!(map.get("sales_cost_12") == null || map.get("sales_cost_12").equals(""))) {
    		this.sales_cost_12 = map.get("sales_cost_12").toString();
    	}
    	if (!(map.get("sum_profit_12") == null || map.get("sum_profit_12").equals(""))) {
    		this.sum_profit_12 = map.get("sum_profit_12").toString();
    	}
    	if (!(map.get("profit_rate_12") == null || map.get("profit_rate_12").equals(""))) {
    		this.profit_rate_12 = map.get("profit_rate_12").toString();
    	}
    	
	}
	
	public static List<ProfitTwelveBean> getBean(List<Map<String, Object>> list) {
		List<ProfitTwelveBean> profitTwelveBeans = null;
		if (list != null && list.size() > 0) {
			profitTwelveBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				profitTwelveBeans.add(new ProfitTwelveBean(map));
			}
		}
		return profitTwelveBeans;
	}
	
	public String getCid() {
		return cid;
	}
	public void setCid(String cid) {
		this.cid = cid;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getSales_volume_1() {
		return sales_volume_1;
	}
	public void setSales_volume_1(String sales_volume_1) {
		this.sales_volume_1 = sales_volume_1;
	}
	public String getSales_cost_1() {
		return sales_cost_1;
	}
	public void setSales_cost_1(String sales_cost_1) {
		this.sales_cost_1 = sales_cost_1;
	}
	public String getSum_profit_1() {
		return sum_profit_1;
	}
	public void setSum_profit_1(String sum_profit_1) {
		this.sum_profit_1 = sum_profit_1;
	}
	public String getProfit_rate_1() {
		return profit_rate_1;
	}
	public void setProfit_rate_1(String profit_rate_1) {
		this.profit_rate_1 = profit_rate_1;
	}
	public String getSales_volume_2() {
		return sales_volume_2;
	}
	public void setSales_volume_2(String sales_volume_2) {
		this.sales_volume_2 = sales_volume_2;
	}
	public String getSales_cost_2() {
		return sales_cost_2;
	}
	public void setSales_cost_2(String sales_cost_2) {
		this.sales_cost_2 = sales_cost_2;
	}
	public String getSum_profit_2() {
		return sum_profit_2;
	}
	public void setSum_profit_2(String sum_profit_2) {
		this.sum_profit_2 = sum_profit_2;
	}
	public String getProfit_rate_2() {
		return profit_rate_2;
	}
	public void setProfit_rate_2(String profit_rate_2) {
		this.profit_rate_2 = profit_rate_2;
	}
	public String getSales_volume_3() {
		return sales_volume_3;
	}
	public void setSales_volume_3(String sales_volume_3) {
		this.sales_volume_3 = sales_volume_3;
	}
	public String getSales_cost_3() {
		return sales_cost_3;
	}
	public void setSales_cost_3(String sales_cost_3) {
		this.sales_cost_3 = sales_cost_3;
	}
	public String getSum_profit_3() {
		return sum_profit_3;
	}
	public void setSum_profit_3(String sum_profit_3) {
		this.sum_profit_3 = sum_profit_3;
	}
	public String getProfit_rate_3() {
		return profit_rate_3;
	}
	public void setProfit_rate_3(String profit_rate_3) {
		this.profit_rate_3 = profit_rate_3;
	}
	public String getSales_volume_4() {
		return sales_volume_4;
	}
	public void setSales_volume_4(String sales_volume_4) {
		this.sales_volume_4 = sales_volume_4;
	}
	public String getSales_cost_4() {
		return sales_cost_4;
	}
	public void setSales_cost_4(String sales_cost_4) {
		this.sales_cost_4 = sales_cost_4;
	}
	public String getSum_profit_4() {
		return sum_profit_4;
	}
	public void setSum_profit_4(String sum_profit_4) {
		this.sum_profit_4 = sum_profit_4;
	}
	public String getProfit_rate_4() {
		return profit_rate_4;
	}
	public void setProfit_rate_4(String profit_rate_4) {
		this.profit_rate_4 = profit_rate_4;
	}
	public String getSales_volume_5() {
		return sales_volume_5;
	}
	public void setSales_volume_5(String sales_volume_5) {
		this.sales_volume_5 = sales_volume_5;
	}
	public String getSales_cost_5() {
		return sales_cost_5;
	}
	public void setSales_cost_5(String sales_cost_5) {
		this.sales_cost_5 = sales_cost_5;
	}
	public String getSum_profit_5() {
		return sum_profit_5;
	}
	public void setSum_profit_5(String sum_profit_5) {
		this.sum_profit_5 = sum_profit_5;
	}
	public String getProfit_rate_5() {
		return profit_rate_5;
	}
	public void setProfit_rate_5(String profit_rate_5) {
		this.profit_rate_5 = profit_rate_5;
	}
	public String getSales_volume_6() {
		return sales_volume_6;
	}
	public void setSales_volume_6(String sales_volume_6) {
		this.sales_volume_6 = sales_volume_6;
	}
	public String getSales_cost_6() {
		return sales_cost_6;
	}
	public void setSales_cost_6(String sales_cost_6) {
		this.sales_cost_6 = sales_cost_6;
	}
	public String getSum_profit_6() {
		return sum_profit_6;
	}
	public void setSum_profit_6(String sum_profit_6) {
		this.sum_profit_6 = sum_profit_6;
	}
	public String getProfit_rate_6() {
		return profit_rate_6;
	}
	public void setProfit_rate_6(String profit_rate_6) {
		this.profit_rate_6 = profit_rate_6;
	}
	public String getSales_volume_7() {
		return sales_volume_7;
	}
	public void setSales_volume_7(String sales_volume_7) {
		this.sales_volume_7 = sales_volume_7;
	}
	public String getSales_cost_7() {
		return sales_cost_7;
	}
	public void setSales_cost_7(String sales_cost_7) {
		this.sales_cost_7 = sales_cost_7;
	}
	public String getSum_profit_7() {
		return sum_profit_7;
	}
	public void setSum_profit_7(String sum_profit_7) {
		this.sum_profit_7 = sum_profit_7;
	}
	public String getProfit_rate_7() {
		return profit_rate_7;
	}
	public void setProfit_rate_7(String profit_rate_7) {
		this.profit_rate_7 = profit_rate_7;
	}
	public String getSales_volume_8() {
		return sales_volume_8;
	}
	public void setSales_volume_8(String sales_volume_8) {
		this.sales_volume_8 = sales_volume_8;
	}
	public String getSales_cost_8() {
		return sales_cost_8;
	}
	public void setSales_cost_8(String sales_cost_8) {
		this.sales_cost_8 = sales_cost_8;
	}
	public String getSum_profit_8() {
		return sum_profit_8;
	}
	public void setSum_profit_8(String sum_profit_8) {
		this.sum_profit_8 = sum_profit_8;
	}
	public String getProfit_rate_8() {
		return profit_rate_8;
	}
	public void setProfit_rate_8(String profit_rate_8) {
		this.profit_rate_8 = profit_rate_8;
	}
	public String getSales_volume_9() {
		return sales_volume_9;
	}
	public void setSales_volume_9(String sales_volume_9) {
		this.sales_volume_9 = sales_volume_9;
	}
	public String getSales_cost_9() {
		return sales_cost_9;
	}
	public void setSales_cost_9(String sales_cost_9) {
		this.sales_cost_9 = sales_cost_9;
	}
	public String getSum_profit_9() {
		return sum_profit_9;
	}
	public void setSum_profit_9(String sum_profit_9) {
		this.sum_profit_9 = sum_profit_9;
	}
	public String getProfit_rate_9() {
		return profit_rate_9;
	}
	public void setProfit_rate_9(String profit_rate_9) {
		this.profit_rate_9 = profit_rate_9;
	}
	public String getSales_volume_10() {
		return sales_volume_10;
	}
	public void setSales_volume_10(String sales_volume_10) {
		this.sales_volume_10 = sales_volume_10;
	}
	public String getSales_cost_10() {
		return sales_cost_10;
	}
	public void setSales_cost_10(String sales_cost_10) {
		this.sales_cost_10 = sales_cost_10;
	}
	public String getSum_profit_10() {
		return sum_profit_10;
	}
	public void setSum_profit_10(String sum_profit_10) {
		this.sum_profit_10 = sum_profit_10;
	}
	public String getProfit_rate_10() {
		return profit_rate_10;
	}
	public void setProfit_rate_10(String profit_rate_10) {
		this.profit_rate_10 = profit_rate_10;
	}
	public String getSales_volume_11() {
		return sales_volume_11;
	}
	public void setSales_volume_11(String sales_volume_11) {
		this.sales_volume_11 = sales_volume_11;
	}
	public String getSales_cost_11() {
		return sales_cost_11;
	}
	public void setSales_cost_11(String sales_cost_11) {
		this.sales_cost_11 = sales_cost_11;
	}
	public String getSum_profit_11() {
		return sum_profit_11;
	}
	public void setSum_profit_11(String sum_profit_11) {
		this.sum_profit_11 = sum_profit_11;
	}
	public String getProfit_rate_11() {
		return profit_rate_11;
	}
	public void setProfit_rate_11(String profit_rate_11) {
		this.profit_rate_11 = profit_rate_11;
	}
	public String getSales_volume_12() {
		return sales_volume_12;
	}
	public void setSales_volume_12(String sales_volume_12) {
		this.sales_volume_12 = sales_volume_12;
	}
	public String getSales_cost_12() {
		return sales_cost_12;
	}
	public void setSales_cost_12(String sales_cost_12) {
		this.sales_cost_12 = sales_cost_12;
	}
	public String getSum_profit_12() {
		return sum_profit_12;
	}
	public void setSum_profit_12(String sum_profit_12) {
		this.sum_profit_12 = sum_profit_12;
	}
	public String getProfit_rate_12() {
		return profit_rate_12;
	}
	public void setProfit_rate_12(String profit_rate_12) {
		this.profit_rate_12 = profit_rate_12;
	}
	
	
}
